﻿<!doctype html>
<html><!-- InstanceBegin template="/Templates/template1.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta charset="utf-8">
<!-- InstanceBeginEditable name="doctitle" -->
<title>储值规则管理</title>
<!-- InstanceEndEditable -->
<script type="text/javascript" src="../js/common.js"></script>
<link href="../css/Pager.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="../js/jquery.pager.js"></script>
<script type="text/javascript" src="../js/gbRst.js"></script>
<script type="text/javascript" src="../js/utils.js"></script>
<link href="../css/style.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="../js/checkLogin.js"></script>
<script type="text/javascript" src="../js/doubleDate2.0.js"></script> 
<script type="text/javascript" src="../js/find.js"></script> 
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
<script type="text/javascript" >
$(function(){
	refreshInput($(".serWrapper"));
	$('.doubledate').kuiDate({
		className:'doubledate',
		isDisabled: "0"  // isDisabled为可选参数，“0”表示今日之前不可选，“1”标志今日之前可选
	});
});
function bclicks(obj){
	var $first=obj.parent("td").parent("tr").children("td:first");
	var id=$first.html();
	var name=$first.next().html();
	//$("#shopName").children("option").blur();
	getParamToshopS(id,name)
}
var pageIndex = 1;
var pagecount = 0;
var count = 0;
var shopId="shopId";
var shopPageCount=0;
var shopCount=0;
$(function(){
	$("#shopIsChoosed").click(function(){
		if($("#shopIsChoosed").is(":checked")){
			$("#shopName").attr("disabled",false);
		}else{
			$("#shopName").attr("disabled",true);
		}
	})
	addMargin($("#window_change"));
	addMargin($("#window_ruleDetil"))
})

function toAdd(){
	$("#doflag").val(1);
	resetForm();
	$("#yinying1,#window_change").show();

}
function toAddRuleDetil(){
	$("#doflag2").val(1);
	resetForm();
	$("#yinying1,#window_ruleDetil").show();

}
function toUpdate(id,shopId,obj){
	resetForm();
	$("#doflag").val(2);
	$("#updateId").val(id)
	for ( var i = 0; i < rst.result.data.length; i++) {
		var ids=getHtmlInt(getHeadIndexValue(i, rst, "id"));
		if(id==ids){
			var option="<option value='"+getHtmlString(getHeadIndexValue(i, rst, "shopId"))+"'>"+getHtmlString(getHeadIndexValue(i, rst, "shopName"))+"</option>";
			$("#shopName2").html(option);
			$("#ruleName").val(getHtmlString(getHeadIndexValue(i, rst, "name")));
			$("#storedAmt").val(getHtmlString(getHeadIndexValue(i, rst, "storedAmt")));
			$("#giveAmt").val(getHtmlString(getHeadIndexValue(i, rst, "giveAmt")));
			$("#enableAmt").val(getHtmlString(getHeadIndexValue(i, rst, "enableAmt")));
			$("#address").val(getHtmlString(getHeadIndexValue(i, rst, "address")));
			$("#discount").val(getHtmlString(getHeadIndexValue(i, rst, "discount")));
			$("#enableTime").val(getHtmlString(getHeadIndexValue(i, rst, "effectDate")).substring(0,10));
			$("#status").val(getHtmlString(getHeadIndexValue(i, rst, "status")));
			$("#disableTime").val(getHtmlString(getHeadIndexValue(i, rst, "uneffectDate")).substring(0,10));
			$("#updateDtId").val(getHtmlString(getHeadIndexValue(i, rst, "dtId")))

		}
	}
	
	$("#yinying1,#window_change").show();
}

function getParamToshopS(id,name){
	var htm="<option value='"+id+"'>"+name+"</option>"
	var shopflag=$("#shopflag").val();
	if(shopflag==1){
	$("#shopName").html(htm);
	$("#shopName").val(id);
	}else{
		$("#shopName2").html(htm);
		$("#shopName2").val(id);	
	}
	closeShopShow();
}

function closeShopShow(){
	$("#shopShow,#yinying").hide();
	$("#searchName").val("");
}

function InitShopList(shopPageIndex){
	var shopName=$("#searchName").val();
	$.ajax({
		type : "post",
		async:false,
		data :'name='+shopName,
		datatype : "json",
		url : "../shop/find/shopList/" + shopPageIndex + "/5",
		success : function(data) {
			var rst = JSON.parse(data);
			if(IsEmpty(rst)){
				art.dialog({fixed:true, lock: true,content:"查询出错",icon:'error',ok:true});	
				return false;
				}
				if(rst.state==0){
					$("#shopList tbody tr").remove();

					initShopTable(rst);
					$("table[id='shopList'] tbody tr").each(function(){
						$(this).children("td:last").css("text-align","center").append("<input type='button' class='common_btn' value='选择' onclick='bclicks($(this))'>");

					})	
					if(rst.result.len > 0){
						 var shu = rst.result.len;
						 shopCount = Math.ceil(shu/5);					
						 }else{
								shopCount==0;
						 }
					 $("#shopPager").pager({ pagenumber: ++shopPageIndex, pagecount: shopCount, buttonClickCallback: ShopPageClick });
					 addMargin($("#shopShow"));	
					 }else if(rst.state==1){
					art.dialog({fixed:true, lock: true,content:rst.msg,icon:'error',ok:true});	
				}else{
					checkStateShowErrorMsgAndDealResult(data);
				}
		}	
	});	
}

function InitTable() {
	var name=$("#searchName1").val().replace(/\s/gi,'');
	var status=$("#searchStatus").val();
	
	var shopId="";
	var param=null;
	if($("#shopIsChoosed").is(":checked")){
		shopId=$("#shopName").val();
		if(shopId!=""&&shopId!=null){
			param={'name':name,'status':status,'shopId':shopId};
		}else{
			param={'name':name,'status':status}
		}
	}else{
		param={'name':name,'status':status}
	}
	$.ajax({
		type : "get",
		async:false,
		data :param,
		datatype : "json",
		url : "../storedRule/find/storedRuleList/" + (pageIndex-1) + "/10",
		success : function(data) {
		 rst = JSON.parse(data);

					if(IsEmpty(rst)){
						art.dialog({fixed:true, lock: true,content:"查询出错",icon:'error',ok:true});	
						return false;
						}
						if(rst.state==0){
							$("#memberList tbody tr").remove();
							initDutyTable(rst);	
							if(rst.result.len > 0){
								 var shu = rst.result.len;
							 	 pagecount = Math.ceil(shu/10);
							 	 $("#NoResult").hide();
							}else{
								pagecount=0;
								$("#NoResult").show();
							}
							 	$("#sup").html("共"+rst.result.len+"条");	
							 $("#pager").pager({ pagenumber: pageIndex, pagecount: pagecount, buttonClickCallback: PageClick });
								
							 }else if(rst.state==1){
							art.dialog({fixed:true, lock: true,content:rst.msg,icon:'error',ok:true});	
						}else{
							checkStateShowErrorMsgAndDealResult(data);
						}				
		}	
	});
}

ShopPageClick = function(pageclickednumber) {
    $("#shopPager").pager({ pagenumber: --pageclickednumber, pagecount: pagecount, buttonClickCallback: PageClick });
    $("#result").html("Clicked Page " + pageclickednumber);
    InitShopList(pageclickednumber);
}

PageClick = function(pageclickednumber) {
	pageIndex=pageclickednumber
	InitTable();
}

function search(){
	InitTable();
}
function search2(){
	InitShopList(0);
}
function initDutyTable(json){
	if(json!=null && json.state==0){
		var params = new Array("shopName", "code","name","effectDate","uneffectDate","staName");// "PayCash", "PayPos", "PayDepstAmt", "PayCheck", "PayPersonCard", "PayIntAmtMny", "StaName", "PaidName"
		LoadDutytable(json,params,"memberList");
	}
}



function initShopTable(json){
	if(json!=null && json.state==0){
		var params = new Array("id", "name","mp","contact");
		Loadtable(json,params,"shopList");
	}
}


function LoadDutytable(json, params, tableId){
	var phArray = new Array();
	var count = 0;
	if (params != null) {
		$(params).each(function(pIndex, pData) {
			$.each(json.result.head, function(hIndex, hData) {
				if (pData == hData) {
					phArray[count++] = hIndex;
				}
			});
		});
	}
	if (json.result.data != null) {
		$.each(json.result.data, function(index, dt) {
			$("table[id='" + tableId + "']").append("<tr></tr>");
			$(phArray).each(function(phIndex, data) {
				$.each($(dt), function(dtIndex, d) {
					if (dtIndex == data) {
						$("table[id='" + tableId + "'] tr:last").append("<td>" +  (d === null||d=="null" ? " " : d) + "</td>");
					}
				});
			});
			var id=getHeadIndexValue(index, json, "id");
			var htm="<td><input class=\"common_btn to_update\" type=\"button\" value=\"修改\" onclick='toUpdate("+id+","+getHeadIndexValue(index, json, "ShopID")+",$(this))' ><br><input class=\"common_btn del\" type=\"button\" value=\"删除\" onclick='popPoint("+id+")' ><br><input class=\"common_btn check_btn\" type=\"button\" value=\"详情\" onclick='toDetil("+id+",$(this))' ></td>"
			$("table[id='" + tableId + "'] tr:last").append(htm);
		});
	}
}
function toDetil(id,obj){
	$("#ruleDiv").hide();
	$("#ruleDetilDiv").show();
	$("#showRuleStatus").val(obj.parent().prev().html())
	$("#showRuleUneffectDate").val(obj.parent().prev().prev().html())
	$("#showRuleEffectDatee").val(obj.parent().prev().prev().prev().html())
	$("#showRuleName").val(obj.parent().prev().prev().prev().prev().html())
	$("#showRuleShopName").val(obj.parent().prev().prev().prev().prev().prev().html())
	_rultId=id
	getRuleDetilByRuleId(1);
	}
function returnURL(){
	$("#ruleDiv").show();
	$("#ruleDetilDiv").hide();
}
function getRuleDetilByRuleId(pageInde){
	 _ruleDetilPageInde=1;
	if(IsNotEmpty(pageInde)){
		_ruleDetilPageInde=pageInde
	}
	
	var params={'storedRuleId':_rultId}
	_ruleDetilJson= _findInfo("../storedRuleDtl/find/storedRuleDetilList/" + (_ruleDetilPageInde-1) + "/10", params)//后台请求数据
	if(_ruleDetilJson.state==0){
		var params=new Array("id","storedAmt","giveAmt","enableAmt","discount");
		_loadInfoOfUpdateAndDelete(_ruleDetilJson, "RuleDetilList", "updateDetil", "deleteDetil", params, "id");
		_loadPage("ruleDetilPager", _ruleDetilPageInde, 10, _ruleDetilJson, getRuleDetilByRuleId)
		$("#ruleDetilSup").html("共"+_ruleDetilJson.result.len+"条")
		}			
		}	
function Loadtable(json, params, tableId){
	var phArray = new Array();
	var count = 0;
	if (params != null) {
		$(params).each(function(pIndex, pData) {
			$.each(json.result.head, function(hIndex, hData) {
				if (pData == hData) {
					phArray[count++] = hIndex;
				}
			});
		});
	}
	if (json.result.data != null) {
		$.each(json.result.data, function(index, dt) {
			$("table[id='" + tableId + "']").append("<tr></tr>");
			$(phArray).each(function(phIndex, data) {
				$.each($(dt), function(dtIndex, d) {
					if (dtIndex == data) {
						$("table[id='" + tableId + "'] tr:last").append("<td>" +  (d === null||d=="null" ? " " : d) + "</td>");
					}
				});
			});
		});
	}
}

function showShopList(type){
	$("#shopflag").val(type)		
		$("#shopName").blur();
		$("#shopName2").blur();
	$("#shopShow,#yinying").show();
	InitShopList(0);
}

function  downRescouse(){
var code=$("#code").val().replace(/\s/gi,'');
	var shopId="";
	var param='code='+code;
	if($("#shopIsChoosed").is(":checked")){
		shopId=$("#shopName").val();
		if(shopId!=""&&shopId!=null){
			param+="&shopId="+shopId;
		}
	}
	param+="&downType=8"
	window.location.href="../csvdown/down/csv/down?"+param
}

function resetForm(){
	$("#close_this").attr("disabled",false)
	$("#shopName2").html("");
	$("#ruleName").val("");
	$("#houseCode").val("");
	$("#storedAmt").val("");
	$("#giveAmt").val("");
	$("#enableAmt").val("");
	$("#discount").val("");
	$("#enableTime").val("");
	$("#disableTime").val("");
	
}

function saveInfo(){
	var doflag=$("#doflag").val();
	if(doflag==1){
  		addInfo();
	}else if(doflag==2){
		updateInfo()
	}else{
			art.dialog({fixed:true, lock: true,content:"页面出错",icon:'error',ok:true});	
		window.location.reload();
	}
}

function saveDetilInfo(){
	var doflag=$("#doflag2").val();
	if(doflag==1){
  		addDetilInfo();
	}else if(doflag==2){
		updateDetilInfo()
	}else{
			art.dialog({fixed:true, lock: true,content:"页面出错",icon:'error',ok:true});	
		window.location.reload();
	}
}

function addDetilInfo(){

	var storedAmt=$("#storedAmt").val().replace(/\s/gi,'');
	var giveAmt=$("#giveAmt").val().replace(/\s/gi,'');
	var enableAmt=$("#enableAmt").val().replace(/\s/gi,'');
	var discount=$("#discount").val().replace(/\s/gi,'');
	if(!_checkMoney(storedAmt, false, "储值金额", "storedAmt")||!_checkMoney(giveAmt, false, "赠送金额", "giveAmt")||!_checkMoney(enableAmt, false, "实际金额", "enableAmt")||!_checkRate(discount, false, "折扣", "discount")){
		return false
	}
	var heads=new Array("storedAmt","giveAmt","enableAmt","discount","storedRuleId")
	var datas=new Array(storedAmt,giveAmt,enableAmt,discount,_rultId);
	var jsonParserStr = _getJsonParseInsertStr(heads, datas);
	var json= _insertInfo("../storedRuleDtl/insert/insertInfo", {"data":jsonParserStr});
	if(IsNotEmpty(json)&&json.state==0){
	getRuleDetilByRuleId(1);
	$("#yinying1,#window_ruleDetil").hide();
	resetForm();
	}
}

function updateDetil(id,obj){
	_updateDteilId=id
	$("#doflag2").val(2);
	for ( var i = 0; i < _ruleDetilJson.result.data.length; i++) {
		var ids= _getIntOfJson(i, _ruleDetilJson, "id");
		if(ids==id){
			$("#storedAmt").val(_getStringOfJson(i, _ruleDetilJson, "storedAmt"));
			$("#giveAmt").val(_getStringOfJson(i, _ruleDetilJson, "giveAmt"));
			$("#enableAmt").val(_getStringOfJson(i, _ruleDetilJson, "enableAmt"));
			$("#discount").val(_getStringOfJson(i, _ruleDetilJson, "discount"));
		}
	}
	$("#yinying1,#window_ruleDetil").show();

}



function updateDetilInfo(){
	if(IsEmpty(_updateDteilId)){
		art.dialog({fixed:true, lock: true,content:"修改出错",icon:'error',ok:true});	
		return false;
	}
	var storedAmt=$("#storedAmt").val().replace(/\s/gi,'');
	var giveAmt=$("#giveAmt").val().replace(/\s/gi,'');
	var enableAmt=$("#enableAmt").val().replace(/\s/gi,'');
	var discount=$("#discount").val();
	
	if(!_checkMoney(storedAmt, false, "储值金额", "storedAmt")||!_checkMoney(giveAmt, false, "赠送金额", "giveAmt")||!_checkMoney(enableAmt, false, "实际金额", "enableAmt")||!_checkRate(discount, false, "折扣", "discount")){
		return false
	}
	var heads=new Array("storedAmt","giveAmt","enableAmt","discount","id")
	var datas=new Array(storedAmt,giveAmt,enableAmt,discount,_updateDteilId);
	var jsonParserStr = _getJsonParseEditStr(heads, datas);

	var json= _editInfo("../storedRuleDtl/edit/editInfo", {"data":jsonParserStr});
			if(json.state==0){
				getRuleDetilByRuleId(_ruleDetilPageInde);
				$("#yinying1,#window_ruleDetil").hide();
				resetForm();
			}
}

function deleteDetil(id){
		art.dialog({fixed:true,
			lock: true,
			content:"确认删除该条数据？",
			icon:'question',
			ok: function(){
			var json=_deleteInfo("../storedRuleDtl/del/delInfo", {'id':id})
			if(IsNotEmpty(json)&&json.state==0){
				getRuleDetilByRuleId(_ruleDetilPageInde);
				if(_checkJsonDataLen(_ruleDetilJson,_ruleDetilPageInde)){
					getRuleDetilByRuleId(--_ruleDetilPageInde);
				}
			}
			},
			cancel:true});
		
}

function addInfo(){

	var shopId=$("#shopName2").val();
	var ruleName=$("#ruleName").val().replace(/\s/gi,'');
	var enableTime=$("#enableTime").val().replace(/\s/gi,'');
	var disableTime=$("#disableTime").val().replace(/\s/gi,'');
	var status=$("#status").val().replace(/\s/gi,'');
	if(!checkNull(shopId, "店铺", null)||!checkNull(ruleName, "规则名称", "ruleName")||!checkNull(enableTime, "启用时间", null)||!checkNull(disableTime, "禁用时间", null)){
		return false;
	}
	var heads=new Array("shopId","name","status","effectDate","uneffectDate")
	var datas=new Array(shopId,ruleName,status,enableTime,disableTime);
	var jsonParserStr = _getJsonParseInsertStr(heads, datas);
	var dt=_insertInfo("../storedRule/insert/insertInfo", {"data":jsonParserStr})
	
			if(dt.state==0){
				pageIndex=1;
				InitTable();
				$("#yinying1,#window_change").hide();
				resetForm();
				 }
}
function deleteDuty(id){
	var dt=_deleteInfo("../storedRule/del/delInfo",{"id":id});
			if(dt.state==0){
				InitTable();
		}
}

function updateInfo(){
	var id=$("#updateId").val()
	if(IsEmpty(id)){

		art.dialog({fixed:true, lock: true,content:"修改出错",icon:'error',ok:true});	
		return false;
	}

	var shopId=$("#shopName2").val();
	var ruleName=$("#ruleName").val().replace(/\s/gi,'');
	var enableTime=$("#enableTime").val().replace(/\s/gi,'');
	var disableTime=$("#disableTime").val().replace(/\s/gi,'');
	var status=$("#status").val().replace(/\s/gi,'');
	if(!checkNull(shopId, "店铺", null)||!checkNull(ruleName, "规则名称", "ruleName")||!checkNull(enableTime, "启用时间", null)||!checkNull(disableTime, "禁用时间", null)){
		return false;
	}
	var heads=new Array("shopId","name","status","effectDate","uneffectDate","id")
	var datas=new Array(shopId,ruleName,status,enableTime,disableTime,id);

	var jsonParserStr = _getJsonParseEditStr(heads, datas);
	$("#close_this").attr("disabled",true)
	var dt = _editInfo("../storedRule/edit/editInfo",{"data":jsonParserStr});
		$("#close_this").attr("disabled",false)
		if(dt.state==0){
				InitTable();
				$("#yinying1,#window_change").hide();
				resetForm();
			}
}
function popPoint(id){
	art.dialog({fixed:true, lock: true,content:"确认删除该条数据？",icon:'question',ok: function(){ deleteDuty(id)},cancel:true});
	}

</script>
</head>
<body>
<div id="yinying1"></div>
<div id="yinying"></div>
<div id="shopShow" class="hideDiv">
    <div style="float:right;margin-bottom:5px;width:20px;height:20px;line-height:20px;text-align:center;background-color:#eee;margin-bottom:5px;border:1px solid #ccc;" > <span style="cursor: pointer;font-size: 14px;" onclick="closeShopShow();" >X</span> </div>
    <div class="bottom_search"><div class="serWrapper"><input type="text" id="searchName" class="txt"><strong class="refresh" onclick="$('#searchName').val('')">清空</strong></div><input class="common_btn" type="button" style="width:auto;margin-left:5px;" value="查询" onclick="search2()"></div>
    <table   id="shopList" cellpadding="4" cellspacing="0" border="1" width="100%">
    <thead>
    <tr>
    <th>店面ID</th>
    <th>店面名称</th>
    <th>电话</th>
    <th>操作</th>
    </tr>
    </thead>
    </table>
    	<div id="shopPager"></div>
    </div>
<!-- InstanceBeginEditable name="EditRegion3" -->
<form id="mainForm" >
  <div id="window_change" class="member_search hideDiv">
    <div class="closeTop"><span class="closeThe" onclick="closeParent($(this))"><img src="../images/close.png"></span></div>
    <input type="hidden" id="doflag">
    <input type="hidden" id="shopflag">
    <input type="hidden" id="updateId">
    <p>
      <label><span> 店面：</span>
        <select id="shopName2" onclick="showShopList(2)" style=";height:20px;">
        	<option value="">请选择店铺</option>
        </select>
      </label>
       <label><span> 规则名称：</span>
               <input type="text" id="ruleName">
      </label>
    </p>
    <p>
       <label><span>启用时间：</span>
        <input type="text" id="enableTime"  class="doubledate " readonly >
      </label>
      <label><span>禁用时间：</span>
        <input type="text" id="disableTime"  class="doubledate " readonly >
      </label>
	</p>
	<p>
	<label><span>状态：</span>
        <select id="status"><option value="1">启用</option><option value="0">停用</option></select>
      </label></p>
    <div class="submit_btn">
      <input type="button" value="保存信息" class="common_btn" id="close_this" onclick="saveInfo()">
    </div>
  </div>
  <div id="window_ruleDetil" class="member_search hideDiv">
    <div class="closeTop"><span class="closeThe" onclick="closeParent($(this))"><img src="../images/close.png"></span></div>
    <input type="hidden" id="doflag2">
    <input type="hidden" id="updateDtId">
   
	<p>
      <label><span>储值金额：</span>
        <input type="text" id="storedAmt">
      </label>
      <label><span>赠送金额：</span>
        <input type="text" id="giveAmt">
      </label>
    </p>
    <p>
      <label><span>实际金额：</span>
        <input type="text" id="enableAmt">
      </label>
      <label><span>享受折扣：</span>
        <input type="text" id="discount">
      </label>
    </p>

    <div class="submit_btn">
      <input type="button" value="保存信息" class="common_btn" id="close_this" onclick="saveDetilInfo()">
    </div>
  </div>
  <!-- 详情操作 -->
</form>
<div class="container" id="container">

  <div class="container_R fr" id="ruleDiv">
	<div class="place">储值规则管理</div>

    <div class="member_search">
     <span> <input type="checkbox" id="shopIsChoosed" style="width:auto;height:auto;border:none;"> 店面：</span><select id="shopName" onclick="showShopList(1)" style=";height:20px;" disabled="disabled" >  </select>
     <span>储值规则名称：</span> <input type="text" id="searchName1" class="absoluteTxt"> <span>状态：</span> <select id="searchStatus" style=";height:20px;" ><option value="">所有</option> <option value="1">正常</option><option value="0">禁用</option>  </select><input type="button" value="查询" class="btn" onclick="search()"></div>
    
    <table width="100%" class="member_list" cellpadding="0" cellspacing="1" border="0" id="memberList">
    	<caption><strong>储值规则详情列表        <span id="sup">共0条</span></strong><input type="button" value="添加规则" class="common_btn addList" onclick="toAdd()"></caption>
    	<thead>
    	<tr>
        	<th>店铺名称</th>
        	<th>规则名称</th>
        	<th>生效时间</th>
        	<th>失效时间</th>
        	<th>规则状态</th>
        	<th>操作</th>
        </tr>
        </thead>
    </table>
    <div id="NoResult"  class="Nothing" style="text-align:center;display: none;">无符合条件的数据！</div>
    <div id="pager" style="float: right;" ></div>
  </div>
 <!-- 详情页 --> 
  <div class="container_R fr" style="padding:17px;width:773px; display: none;" id="ruleDetilDiv">
	<div class="place">储值规则详情 <a class="goHome" onclick='returnURL()' href='javaScript:void(0)'>返回</a></div>

    <div class="member_search">
     <div class="knowPerson">
      <p class="knowAll" id="mInfo">
        <label> <span>店铺名称：</span>
          <input type="text"  id="showRuleShopName">
        </label>
        <label> <span>规则名称：</span>
          <input type="text"  id="showRuleName">
        </label>
        <label> <span>状态：</span>
          <input type="text"  id="showRuleStatus">
        </label>
        </p>
        <p class="knowAll" id="mInfo">
        <label> <span>生效时间：</span>
          <input type="text"  id="showRuleEffectDatee">
        </label>
        <label> <span>失效时间：</span>
          <input type="text"  id="showRuleUneffectDate">
        </label>
        </p>
      </div>
      </div>
    <table width="100%" class="member_list" cellpadding="0" cellspacing="1" border="0" id="RuleDetilList">
    	<caption><strong>储值规则详情列表        <span id="ruleDetilSup">共0条</span></strong><input type="button" value="添加规则详情" class="common_btn addList" onclick="toAddRuleDetil()"></caption>
    	<thead>
    	<tr>
        	
        	<th>储值规则详情ID</th>
        	<th>储值金额</th>
        	<th>赠送金额</th>
        	<th>实际金额</th>
        	<th>享受折扣</th>
        	<th>操作</th>
        </tr>
        </thead>
        <tbody></tbody>
    </table>
    <div id="NoResult"  class="Nothing" style="text-align:center;display: none;">无符合条件的数据！</div>
    <div id="ruleDetilPager"  class="shopPager " style="float: right;"></div>
  </div>
  <div class="fc"></div>
</div>

<!-- InstanceEndEditable -->
<script type="text/javascript" src="../js/header.js"></script>
<script type="text/javascript" src="../js/left.js"></script>
<script type="text/javascript" src="../js/footer.js"></script>
<script type="text/javascript">
clearThis("absoluteTxt");
showTab(2,7);
</script>
</body>
<!-- InstanceEnd --></html>
